

if [ ! -d jemalloc-3.6.0 ]; then 
	git clone https://git.oschina.net/wr4ng1er/jemalloc-3.6.0.git
else
	echo "jemalloc-3.6.0 file exit"
fi 

cd jemalloc-3.6.0
./configure --prefix=/opt/jemalloc	&& make && make install
echo 'export PATH=$PATH:/opt/jemalloc/bin'>>/etc/profile && source /etc/profile

echo '/opt/jemalloc/lib' >> /etc/ld.so.conf.d/jemalloc.conf
echo '/opt/jemalloc/include' >> /etc/ld.so.conf.d/jemalloc.conf
sudo /sbin/ldconfig



